window.onload = function () {
    showBody();
}

function showBody() {
    axios.get("/user/getLoginUser").then(resp => {
        let info = resp.data;
        if (info.level == "班主任") {
            $("infoBody").style.display = "none";
            $("roomBody").style.display = "none";
        } else if (info.level == "系统管理员") {
            $("classBody").style.display = "none";
            $("roomBody").style.display = "none";
        }else if (info.level=="房间管理员"){
            $("classBody").style.display = "none";
            $("infoBody").style.display = "none";
        }
    })

}